/*package com.hy.mydesktop.shared.business;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.HashSet;
import java.util.LinkedHashSet;
import java.util.LinkedList;
import java.util.List;
import java.util.Map;
import java.util.Set;

import com.extjs.gxt.ui.client.data.BaseModel;
import com.extjs.gxt.ui.client.data.ModelData;
import com.hy.mydesktop.shared.persistence.domain.gxt.GridModel;
import com.hy.mydesktop.shared.persistence.domain.gxt.GxtAppEventType;
import com.hy.mydesktop.shared.persistence.domain.gxt.GxtComponentControllerMetaModel;
import com.hy.mydesktop.shared.persistence.domain.gxt.GxtComponentControllerMetaNodeModel;
import com.hy.mydesktop.shared.persistence.domain.gxt.GxtComponentMetaModel;
import com.hy.mydesktop.shared.persistence.domain.gxt.GxtComponentMetaNodeModel;
import com.hy.mydesktop.shared.persistence.domain.gxt.ItemOfAssociateToWindow;
import com.hy.mydesktop.shared.persistence.domain.gxt.constant.ComponentMetaDataConstants;
import com.hy.mydesktop.shared.persistence.domain.gxt.constant.MetaDataConstants;
import com.hy.mydesktop.shared.rpc.meta.GxtToSeamServiceParameter;
import com.hy.mydesktop.client.component.meta.GridColumnConfigModel;

import com.hy.mydesktop.client.component.mvc.event.EventStructureMetaModel;
import com.hy.mydesktop.client.component.type.ComponentControllerEnum;
import com.hy.mydesktop.client.component.type.ComponentTypeEnum;
import com.hy.mydesktop.client.mvc.core.builder.ControllerAndComponentMetaNodeModelCreationTemplate;
*//**
 * 
 * <ul>
 * <li>开发作者：李冰</li>
 * <li>设计日期：2010-11-25；时间：上午11:53:56</li>
 * <li>类型名称：PositonTypeServices</li>
 * <li>设计目的：职位类型</li>
 * </ul>
 * <ul>
 * <b>修订编号：</b>
 * <li>修订日期：</li>
 * <li>修订作者：</li>
 * <li>修订原因：</li>
 * <li>修订内容：</li>
 * </ul>
 *//*
public class PositonTypeServices2012_2_16 {

	//创建桌面快捷方式的代码	
		private GxtComponentMetaModel createDynamicDesktopController3() {

			Map<String , Object> desktopController=new HashMap<String, Object>();
//			desktopController.put("component_controller_model_type", ComponentControllerEnum.DESKTOP_CONTROL_MODEL);
			desktopController.put("component_controller_model_type_index", ComponentControllerEnum.DESKTOP_CONTROLLOR_MODEL.ordinal());
			List<String> codes1 = new ArrayList<String>();
			codes1.add("0003");
			codes1.add("0002");
			codes1.add("0005");
			desktopController.put("registereventtypes", codes1);
			desktopController.put("id", "desktopController");
			GxtComponentMetaNodeModel node=new GxtComponentMetaNodeModel(desktopController,1,4);
			
			Map<String , Object> shortcutController=new HashMap<String, Object>();
//			shortcutController.put("component_controller_model_type", ComponentControllerEnum.SHORTCUT_CONTROLLER_MODEL);
			shortcutController.put("component_controller_model_type_index", ComponentControllerEnum.SHORTCUT_CONTROLLER_MODEL.ordinal());
			List<String> codes2 = new ArrayList<String>();
			codes2.add("0003");
			codes2.add("0002");
			codes2.add("0005");
			shortcutController.put("registereventtypes", codes2);
			shortcutController.put("id", "shortcutController01");
			shortcutController.put("viewdata", "shortcut_viewData_init_01");	
			shortcutController.put(MetaDataConstants.GXT_COMPONENT__METANODEMODEL, this.getShortcutGxtComponentMetaNodeModel());		
			GxtComponentMetaNodeModel node2=new GxtComponentMetaNodeModel(shortcutController,2,3);
			
			
			List<GxtComponentMetaNodeModel> list=new ArrayList<GxtComponentMetaNodeModel>();
			list.add(node);
			list.add(node2);
			

			GxtComponentMetaModel gxtComponentMetaModel=new GxtComponentMetaModel(list);
			
			
			
			
			return gxtComponentMetaModel;
			

		}
		
		


		private GxtComponentMetaNodeModel getShortcutGxtComponentMetaNodeModel() {
			Map<String, Object> map2=new HashMap<String, Object>();
			//map2.put("component_model_type", ComponentTypeEnum.SHORTCUT_MODEL);
			map2.put("component_model_type_index", ComponentTypeEnum.SHORTCUT_MODEL.ordinal());
			//TODO map2.put("appEventType", AppEvents.DESKTOP_SHORTCUT_ONCLICK_INIT);
				Map<String,Object> RegisterEventTypeDatas = new HashMap<String, Object>();
				//添加需要监听的事件类型，指定由某一个控制器响应，控制器内部应该如何响应（附加参数和数据）
				*//**
				 * 00_01_02为特征码
				 * 或者是 控制器的唯一标识
				 *//*
					Map<String,Object> oneRegisterEventTypeData = new HashMap<String, Object>();
						EventStructureMetaModel eventStructureMetaModel = new EventStructureMetaModel();
						eventStructureMetaModel.setControllerId("shortcutController01");
						eventStructureMetaModel.setRootControllerId("desktopController");
						eventStructureMetaModel.setResponseModeId("00_01_02");
					oneRegisterEventTypeData.put("eventstructuremetamodel", eventStructureMetaModel);
					
						Map<String,Object> oneDispacherEventTypeData = new HashMap<String, Object>();
							EventStructureMetaModel subEventStructureMetaModel = new EventStructureMetaModel();
							subEventStructureMetaModel.setControllerId("1_1_windowController_PositonType");
							subEventStructureMetaModel.setRootControllerId("1_1_windowController_PositonType");
						oneDispacherEventTypeData.put("eventstructuremetamodel", subEventStructureMetaModel);
						oneDispacherEventTypeData.put("count", 7);
					oneRegisterEventTypeData.put("dispachereventtype", "0007");
					
				RegisterEventTypeDatas.put("0003", oneRegisterEventTypeData);
				//codes1.add("0002");
			map2.put("registereventtypes", RegisterEventTypeDatas);
				Map<String,Object> dispacherEventTypeDatas = new HashMap<String, Object>();
				dispacherEventTypeDatas.put("0007", oneDispacherEventTypeData);
			map2.put("dispachereventtypes", dispacherEventTypeDatas);
			//map2.put("icon", "user");
			//map2.put("icon", "extanim32");
			map2.put("text", "Rpc   -----LoginView----AppEvents.DESKTOP_INIT_FOR_LOGGED_IN_USER");	
			GxtComponentMetaNodeModel node2=new GxtComponentMetaNodeModel(map2);
			return node2;
		}


		public List<GxtComponentMetaNodeModel> getList2( BaseModel	baseModel) 
		{

			
			//窗口+树
			Map<String , Object> windowController=new HashMap<String, Object>();
			//windowController.put("component_controller_model_type", ComponentControllerEnum.WINDOW_CONTROLLER_MODEL.ordinal());
			windowController.put("component_controller_model_type_index", ComponentControllerEnum.WINDOW_CONTROLLER_MODEL.ordinal());
			List<String> codes1 = new ArrayList<String>();
			codes1.add("0101");
			codes1.add("0301");		
			codes1.add("0003");
			codes1.add("0201");
			codes1.add("0401");
			codes1.add("0007");
			codes1.add("0008");
			
			windowController.put("id", "windowController");
			windowController.put("registereventtypes", codes1);
			windowController.put("viewdata", "window_viewData_init_01");		
			GxtComponentMetaNodeModel node=new GxtComponentMetaNodeModel(windowController,1,14);
			
			Map<String , Object> contentPanelController=new HashMap<String, Object>();
//			contentPanelController.put("component_controller_model_type", ComponentControllerEnum.CONTENTPANEL_CONTROLLER_MODEL.ordinal());
			contentPanelController.put("component_controller_model_type_index", ComponentControllerEnum.CONTENTPANEL_CONTROLLER_MODEL.ordinal());
			List<String> codes2 = new ArrayList<String>();
			codes2.add("0201");
			codes2.add("0301");
			codes2.add("0401");
			codes2.add("0101");
			codes2.add("0007");
			codes2.add("0008");
			contentPanelController.put("registereventtypes", codes2);				
			contentPanelController.put("id", "contentPanelController");				
			contentPanelController.put("viewdata", "contentPanel_viewData_init_01");		
			GxtComponentMetaNodeModel node2=new GxtComponentMetaNodeModel(contentPanelController,2,13);
			
			Map<String , Object> menuBarController=new HashMap<String, Object>();
//			menuBarController.put("component_controller_model_type", ComponentControllerEnum.MENUBAR_CONTROLLER_MODEL.ordinal());
			menuBarController.put("component_controller_model_type_index", ComponentControllerEnum.MENUBAR_CONTROLLER_MODEL.ordinal());
			List<String> codes3 = new ArrayList<String>();
			codes3.add("0201");
			codes3.add("0301");
			codes3.add("0401");
			codes3.add("0101");
			codes3.add("0007");
			codes3.add("0008");
			menuBarController.put("registereventtypes", codes3);
			menuBarController.put("id", "menuBarController");
			menuBarController.put("viewdata", "menuBar_viewData_init_01");		
			GxtComponentMetaNodeModel node3=new GxtComponentMetaNodeModel(menuBarController,3,4);
			
			Map<String , Object> toolBarController=new HashMap<String, Object>();
//			toolBarController.put("component_controller_model_type", ComponentControllerEnum.TOOLBAR_CONTROLLER_MODEL);
			toolBarController.put("component_controller_model_type_index", ComponentControllerEnum.TOOLBAR_CONTROLLER_MODEL.ordinal());
			List<String> codes4 = new ArrayList<String>();
			codes4.add("0201");
			codes4.add("0301");
			codes4.add("0401");
			codes4.add("0101");
			codes4.add("0007");
			codes4.add("0008");
			toolBarController.put("registereventtypes", codes4);
			toolBarController.put("id", "toolBarController");
			toolBarController.put("viewdata", "toolBar_viewData_init_01");		
			GxtComponentMetaNodeModel node4=new GxtComponentMetaNodeModel(toolBarController,5,6);
			
			
			
			
			Map<String, Object> sumFormPanelController=new HashMap<String, Object>();
//			sumFormPanelController.put("component_controller_model_type", ComponentControllerEnum.FORMPANEL_CONTROLLER_MODEL);
			sumFormPanelController.put("component_controller_model_type_index", ComponentControllerEnum.FORMPANEL_CONTROLLER_MODEL.ordinal());
			List<String> codes45 = new ArrayList<String>();
			codes45.add("0201");
			codes45.add("0301");
			codes45.add("0401");
			codes45.add("0101");
			codes45.add("0007");
			codes45.add("0008");
			sumFormPanelController.put("registereventtypes", codes45);
			sumFormPanelController.put("id", "sumFormPanelController");
			sumFormPanelController.put("controllerdata", "sumFormPanel_controllerdata_init_01");		
			sumFormPanelController.put("viewdata", "sumFormPanel_viewData_init_01");		
			GxtComponentMetaNodeModel node45=new GxtComponentMetaNodeModel(sumFormPanelController, 7, 12);
			
			
			Map<String , Object> formPanelController=new HashMap<String, Object>();
//			formPanelController.put("component_controller_model_type", ComponentControllerEnum.FORMSET_MODULE_CONTROLLER_MODEL);
			formPanelController.put("component_controller_model_type_index", ComponentControllerEnum.FORMSET_MODULE_CONTROLLER_MODEL.ordinal());
			List<String> codes5 = new ArrayList<String>();
			codes5.add("0201");
			codes5.add("0301");
			codes5.add("0401");
			codes5.add("0101");
			codes5.add("0007");
			codes5.add("0008");
			formPanelController.put("registereventtypes", codes5);
			formPanelController.put("id", "formPanelController");
			formPanelController.put("controllerdata", "formPanel_controllerdata_init_01");		
			formPanelController.put("viewdata", "formPanel_viewData_init_01");		
			GxtComponentMetaNodeModel node5=new GxtComponentMetaNodeModel(formPanelController,8,9);
			
			Map<String , Object> treePanelModulesController=new HashMap<String, Object>();
//			treePanelModulesController.put("component_controller_model_type", ComponentControllerEnum.TREEPANELMODULES_CONTROLLER_MODEL);
			treePanelModulesController.put("component_controller_model_type_index", ComponentControllerEnum.TREEPANELMODULES_CONTROLLER_MODEL.ordinal());
			List<String> codes6 = new ArrayList<String>();
			codes6.add("0401"); 
			codes6.add("0301"); 
			codes6.add("0201"); 
			codes6.add("0101");
			codes6.add("0007");
			codes6.add("0008");
			treePanelModulesController.put("registereventtypes", codes6);
			treePanelModulesController.put("id", "treePanelModulesController");
			treePanelModulesController.put("viewdata", "treePanelModules_viewData_init_01");		
			GxtComponentMetaNodeModel node6=new GxtComponentMetaNodeModel(treePanelModulesController,10,11);
			
			List<GxtComponentMetaNodeModel> list=new ArrayList<GxtComponentMetaNodeModel>();
			list.add(node);
			list.add(node2);
			list.add(node3);
			list.add(node4);
			list.add(node45);
			list.add(node5);
			list.add(node6);
			
			//GxtComponentMetaModel gxtComponentMetaModel=new GxtComponentMetaModel(list);
			//return GxtComponentControlerFactory.createGxtComponentController(gxtComponentMetaModel);
			
			return list;
			
			
			
		
		}

		public List<GxtComponentMetaModel> validateLogin0 ( BaseModel	baseModel) {
			System.err.println("Rpc get Username + Password" + baseModel.get("username")
					+"  "+baseModel.get("password"));
			List<GxtComponentMetaModel> list=new ArrayList<GxtComponentMetaModel>();
			GxtComponentMetaModel gxtComponentMetaModel=new GxtComponentMetaModel(this.getList2(baseModel));
			//list.add(gxtComponentMetaModel);
			list.add(this.createDynamicDesktopController3());
			//list.add(this.createDynamicWindowController());
				
		
			return list;
		}

		
		
		public GxtComponentControllerMetaModel createDynamicWindowController2()
		{
			
			//窗口+表格
			Map<String , Object> windowController=new HashMap<String, Object>();
//			windowController.put("component_controller_model_type", ComponentControllerEnum.WINDOW_CONTROLLER_MODEL);
			windowController.put("component_controller_model_type_index", ComponentControllerEnum.WINDOW_CONTROLLER_MODEL.ordinal());
			List<String> codes1 = new ArrayList<String>();
			codes1.add("0301");		
			codes1.add("0401");
			codes1.add("0007");
			codes1.add("0008");
			
			windowController.put("id", "1_1_windowController_PositonType");
			windowController.put("registereventtypes", codes1);
			windowController.put("viewdata", "window_viewData_init_01");		
			windowController.put(MetaDataConstants.GXT_COMPONENT__METANODEMODEL, this.getWindowGxtComponentMetaNodeModel());
			GxtComponentControllerMetaNodeModel node=new GxtComponentControllerMetaNodeModel(windowController,1,14);
			
			Map<String , Object> contentPanelController=new HashMap<String, Object>();
//			contentPanelController.put("component_controller_model_type", ComponentControllerEnum.CONTENTPANEL_CONTROLLER_MODEL);
			contentPanelController.put("component_controller_model_type_index", ComponentControllerEnum.CONTENTPANEL_CONTROLLER_MODEL.ordinal());
			
			List<String> codes2 = new ArrayList<String>();
			codes2.add("0301");
			codes2.add("0401");
			codes2.add("0007");
			codes2.add("0008");
			contentPanelController.put("registereventtypes", codes2);				
			contentPanelController.put("id", "2_1_contentPanelController_PositonType");				
			contentPanelController.put("viewdata", "contentPanel_viewData_init_01");
			contentPanelController.put(MetaDataConstants.GXT_COMPONENT__METANODEMODEL, this.getContentPanelGxtComponentMetaNodeModel());		

			GxtComponentControllerMetaNodeModel node2=new GxtComponentControllerMetaNodeModel(contentPanelController,2,13);
			
			Map<String , Object> menuBarController=new HashMap<String, Object>();
//			menuBarController.put("component_controller_model_type", ComponentControllerEnum.MENUBAR_CONTROLLER_MODEL);
			menuBarController.put("component_controller_model_type_index", ComponentControllerEnum.MENUBAR_CONTROLLER_MODEL.ordinal());
			List<String> codes3 = new ArrayList<String>();
			codes3.add("0301");
			codes3.add("0401");
			codes3.add("0007");
			codes3.add("0008");
			menuBarController.put("registereventtypes", codes3);
			menuBarController.put("id", "3_1_menuBarController_PositonType");
			menuBarController.put("viewdata", "menuBar_viewData_init_01");		
			//menuBarController.put(MetaDataConstants.GXT_COMPONENT__METANODEMODEL, this.getMenuBarGxtComponentMetaNodeModel());		
			GxtComponentControllerMetaNodeModel node3=new GxtComponentControllerMetaNodeModel(menuBarController,3,4);
			
			Map<String , Object> toolBarController=new HashMap<String, Object>();
//			toolBarController.put("component_controller_model_type", ComponentControllerEnum.TOOLBAR_CONTROLLER_MODEL);
			toolBarController.put("component_controller_model_type_index", ComponentControllerEnum.TOOLBAR_CONTROLLER_MODEL.ordinal());
			List<String> codes4 = new ArrayList<String>();
		    codes4.add("0301");
			codes4.add("0401");
			codes4.add("0007");
			codes4.add("0008");
			toolBarController.put("registereventtypes", codes4);
			toolBarController.put("id", "3_1_toolBarController_PositonType");
			toolBarController.put("viewdata", "toolBar_viewData_init_01");		
			toolBarController.put(MetaDataConstants.GXT_COMPONENT__METANODEMODEL, this.getToolBarGxtComponentMetaNodeModel());		
			GxtComponentControllerMetaNodeModel node4=new GxtComponentControllerMetaNodeModel(toolBarController,5,6);
			
			
			
			
			Map<String, Object> sumFormPanelController=new HashMap<String, Object>();
//			sumFormPanelController.put("component_controller_model_type", ComponentControllerEnum.FORMPANEL_CONTROLLER_MODEL);
			sumFormPanelController.put("component_controller_model_type_index", ComponentControllerEnum.FORMPANEL_CONTROLLER_MODEL.ordinal());
			List<String> codes45 = new ArrayList<String>();
			codes45.add("0301");
			codes45.add("0401");
			codes45.add("0007");
			codes45.add("0008");
			sumFormPanelController.put("registereventtypes", codes45);
			sumFormPanelController.put("id", "3_1_sumFormPanelController_PositonType");
			sumFormPanelController.put("controllerdata", "sumFormPanel_controllerdata_init_01");		
			sumFormPanelController.put("viewdata", "sumFormPanel_viewData_init_01");		
			sumFormPanelController.put(MetaDataConstants.GXT_COMPONENT__METANODEMODEL,  this.getSumFormPanelGxtComponentMetaNodeModel());		
			GxtComponentControllerMetaNodeModel node45=new GxtComponentControllerMetaNodeModel(sumFormPanelController, 7, 12);
			
			
			
			Map<String , Object> gridController=new HashMap<String, Object>();
//			gridController.put("component_controller_model_type", ComponentControllerEnum.GRIDSETMODULES_CONTROLLER_MODEL);
			gridController.put("component_controller_model_type_index", ComponentControllerEnum.GRIDSETMODULES_CONTROLLER_MODEL.ordinal());
			List<String> codes6 = new ArrayList<String>();
			codes6.add("0401"); 
			codes6.add("0301"); 
			codes6.add("0007");
			codes6.add("0008");
			gridController.put("registereventtypes", codes6);
			gridController.put("id", "4_1_gridController_PositonType");
			gridController.put("viewdata", "textField_viewData_init_01");	
			gridController.put(MetaDataConstants.GXT_COMPONENT__METANODEMODEL, this.getGridSetModuleGxtComponentMetaNodeModel2());		
			GxtComponentControllerMetaNodeModel node6=new GxtComponentControllerMetaNodeModel(gridController,8,11);
			
			Map<String , Object> dataLoadController=new HashMap<String, Object>();
//			dataLoadController.put("component_controller_model_type", ComponentControllerEnum.GRID_DATALOAD_CONTROLLER_MODEL);
			dataLoadController.put("component_controller_model_type_index", ComponentControllerEnum.GRID_DATALOAD_CONTROLLER_MODEL.ordinal());
			List<String> codes12222 = new ArrayList<String>();
			codes12222.add("0301");		
			codes12222.add("0201");
			codes12222.add("0401");
			
			//加载数据控制器id
			dataLoadController.put("id", "5_1_dataLoadController_PositonType");
			dataLoadController.put("registereventtypes", codes12222);
			//dataLoadController.put(MetaDataConstants.GXT_COMPONENT__METANODEMODEL, codes12222);
			//windowController.put("viewdata", "window_viewData_init_01");		
			GxtComponentControllerMetaNodeModel node62=new GxtComponentControllerMetaNodeModel(dataLoadController,9,10);

			List<GxtComponentControllerMetaNodeModel> list=new ArrayList<GxtComponentControllerMetaNodeModel>();
			list.add(node);
			list.add(node2);
			list.add(node3);
			list.add(node4);
			list.add(node45);
			//list.add(node5);
			list.add(node6);
			list.add(node62);
			GxtComponentControllerMetaModel gxtComponentControllerMetaModel=new GxtComponentControllerMetaModel(list);
			return gxtComponentControllerMetaModel;
						

		}
		
		public GxtComponentControllerMetaModel createDynamicWindowController()
		{
			//窗口+表格
			//Map<String, Object> windowMap1=new HashMap<String, Object>();
			//windowMap1.put(MetaDataConstants.LEFT_VALUE, 1);
			//windowMap1.put(MetaDataConstants.RIGHT_VALUE, 12);
			//windowMap1.put(MetaDataConstants.COMPONENT_CONTROLLER_METAMODEL_ID, "positionTypeServices");

			Map<String, Object> windowMap2=new HashMap<String, Object>();
			windowMap2.put(ComponentMetaDataConstants.HEADING, "555职位类型设置");
			windowMap2.put(ComponentMetaDataConstants.TITLE, "职位类型设置");

//			GxtComponentControllerMetaNodeModel node=ControllerAndComponentMetaNodeModelCreationTemplate.createWindowTemplate(windowMap1,windowMap2);
			GxtComponentControllerMetaNodeModel node=ControllerAndComponentMetaNodeModelCreationTemplate
			.createWindowTemplate("positionTypeServices",1,12,windowMap2);
			
			
			
			Map<String, Object> contentPanelMap1=new HashMap<String, Object>();
			contentPanelMap1.put(MetaDataConstants.LEFT_VALUE, 2);
			contentPanelMap1.put(MetaDataConstants.RIGHT_VALUE, 11);
			contentPanelMap1.put(MetaDataConstants.COMPONENT_CONTROLLER_METAMODEL_ID, "positionTypeServices");

			Map<String, Object> contentPanelMap2=new HashMap<String, Object>();
			contentPanelMap2.put(ComponentMetaDataConstants.TITLE, "contentpanel tooltip!");

			GxtComponentControllerMetaNodeModel node2=ControllerAndComponentMetaNodeModelCreationTemplate.createContentPanelTemplate(contentPanelMap1,contentPanelMap2);
			
			
			System.err.println(node2.getLeftValue());
			System.err.println(node2.getRightValue()+"dddddddddddddddddddddd"+node.getGxtComponentMetaNodeModel().getComponentTypeEnum());
			System.err.println(node2.getGxtComponentMetaNodeModel());
			System.err.println(node2.getGxtComponentMetaNodeModel().getComponentTypeEnumIndex());
			System.err.println(node2.getGxtComponentMetaNodeModel().getComponentTypeEnumName());
			System.err.println(node2.getGxtComponentMetaNodeModel().getComponentTypeEnum());
			
			Map<String , Object> menuBarMap1=new HashMap<String, Object>();
			menuBarMap1.put(MetaDataConstants.LEFT_VALUE, 3);
			menuBarMap1.put(MetaDataConstants.RIGHT_VALUE, 4);
			menuBarMap1.put(MetaDataConstants.COMPONENT_CONTROLLER_METAMODEL_ID, "positionTypeServices");
			
			Map<String , Object> menuBarMap2=new HashMap<String, Object>();			
			GxtComponentControllerMetaNodeModel node3=ControllerAndComponentMetaNodeModelCreationTemplate.createMenuBarTemplate(menuBarMap1,menuBarMap2);

			
			Map<String , Object> toolBarMap1=new HashMap<String, Object>();
			Map<String , Object> toolBarMap2=new HashMap<String, Object>();
		
			
			GxtComponentControllerMetaNodeModel node4=ControllerAndComponentMetaNodeModelCreationTemplate.createToolBarTemplate(
					"positionTypeServices",5,6,toolBarMap2);
			
			Map<String , Object> formPanelMap2=new HashMap<String, Object>();
			GxtComponentControllerMetaNodeModel node45=ControllerAndComponentMetaNodeModelCreationTemplate.createFormPanelTemplate(
				"positionTypeServices",7,10,formPanelMap2);
			
			Map<String, Object> sumFormPanelController=new HashMap<String, Object>();
			sumFormPanelController.put(MetaDataConstants.GXT_COMPONENT__METANODEMODEL,  this.getSumFormPanelGxtComponentMetaNodeModel());		
			GxtComponentControllerMetaNodeModel node45=new GxtComponentControllerMetaNodeModel(sumFormPanelController, 7, 10);
			node45.setRegisterEventTypes(node45.addGxtAppEventType(appEventIds));

			
			GxtComponentControllerMetaNodeModel node6=ControllerAndComponentMetaNodeModelCreationTemplate.createGridTemplate(
					"positionTypeServices",8,9,formPanelMap2);
			
			Map<String , Object> gridController=new HashMap<String, Object>();
			String[] appEventIds={"0301","0401"};
			gridController.put(MetaDataConstants.GXT_COMPONENT__METANODEMODEL, this.getGridSetModuleGxtComponentMetaNodeModel2());		
			GxtComponentControllerMetaNodeModel node6=new GxtComponentControllerMetaNodeModel(gridController,8,9);
			node6.setRegisterEventTypes(node6.addGxtAppEventType(appEventIds));

			
			Map<String , Object> dataLoadController=new HashMap<String, Object>();
//			dataLoadController.put("component_controller_model_type", ComponentControllerEnum.GRID_DATALOAD_CONTROLLER_MODEL);
			dataLoadController.put("component_controller_model_type_index", ComponentControllerEnum.GRID_DATALOAD_CONTROLLER_MODEL.ordinal());
			List<String> codes12222 = new ArrayList<String>();
			codes12222.add("0301");		
			codes12222.add("0201");
			codes12222.add("0401");
			
			//加载数据控制器id
			dataLoadController.put("id", "5_1_dataLoadController_PositonType");
			dataLoadController.put("registereventtypes", codes12222);
			//dataLoadController.put(MetaDataConstants.GXT_COMPONENT__METANODEMODEL, codes12222);
			//windowController.put("viewdata", "window_viewData_init_01");		
			GxtComponentControllerMetaNodeModel node62=new GxtComponentControllerMetaNodeModel(dataLoadController,9,10);

			List<GxtComponentControllerMetaNodeModel> list=new ArrayList<GxtComponentControllerMetaNodeModel>();
			list.add(node);
			list.add(node2);
			list.add(node3);
			list.add(node4);
			list.add(node45);
			//list.add(node5);
			list.add(node6);
			//////////////////////////
			//list.add(node62);
			////////////////////////////////
			GxtComponentControllerMetaModel gxtComponentControllerMetaModel=new GxtComponentControllerMetaModel(list);
			gxtComponentControllerMetaModel.setId("positionTypeServices");
			return gxtComponentControllerMetaModel;
						

		}
		
		
		
		*//**
		 * 模拟从后台传过来的关于Window控件的元模型信息
		 *//*
		public GxtComponentMetaNodeModel getWindowGxtComponentMetaNodeModel( ) {
			Map<String, Object> map2=new HashMap<String, Object>();
			map2.put("component_model_type", ComponentTypeEnum.WINDOW_MODEL);
			map2.put("component_model_type_index", ComponentTypeEnum.WINDOW_MODEL.ordinal());
			map2.put("title", "职位类型设置");
			map2.put("heading", "职位类型设置");
			map2.put("width", 800);
			map2.put("height", 550);
			map2.put("id", "01_01_windowGxtComponent_PositonType");
			map2.put("resizable", false);
			map2.put("maxmizable", false);
			map2.put("minmizable", true);
			map2.put(ComponentMetaDataConstants.LAYOUT_INDEX, ComponentTypeEnum.FITLAYOUT_MODEL.ordinal());
			GxtComponentMetaNodeModel gxtComponentMetaNodeModel=new GxtComponentMetaNodeModel(map2);
			                   
			return gxtComponentMetaNodeModel;
			
		}
		
		public GxtComponentMetaNodeModel getContentPanelGxtComponentMetaNodeModel() {
			Map<String, Object> map2=new HashMap<String, Object>();
			map2.put("component_model_type", ComponentTypeEnum.CONTENTPANEL_MODEL);
			map2.put("component_model_type_index", ComponentTypeEnum.CONTENTPANEL_MODEL.ordinal());
			map2.put("headervisible", false);
			//map2.put("heading", "职位类型设置");
			map2.put("id", "02_01_contentPanelGxtComponent_PositonType");	
			map2.put("title", "contentpanel tooltip!");	
			GxtComponentMetaNodeModel node2=new GxtComponentMetaNodeModel(map2);
			return node2;
		}
		
		


		public GxtComponentMetaNodeModel getToolBarGxtComponentMetaNodeModel2() {
			
			
		 	Map<String, Object> button01 = new HashMap<String, Object>();
		    button01.put("component_model_type_index", ComponentTypeEnum.BUTTON_MODEL.ordinal());   
		    button01.put("text", "新建");
			  //TODO map2.put("appEventType", AppEvents.DESKTOP_SHORTCUT_ONCLICK_INIT);
				Map<String,Object> codes2 = new HashMap<String, Object>();
				//添加需要监听的事件类型，指定由某一个控制器响应，控制器内部应该如何响应（附加参数和数据）
				*//**
				 * 00_01_02为特征码
				 * 或者是 控制器的唯一标识
				 *//*
				GxtAppEventType registerEventType = new GxtAppEventType();
				registerEventType.setRegisterEventType("0010");
						EventStructureMetaModel eventStructureMetaModel = new EventStructureMetaModel();
						eventStructureMetaModel.setControllerId("windowController2");
						eventStructureMetaModel.setRootControllerId("windowController2");
					
		
			button01.put("registereventtypes", codes2);
			GxtToSeamServiceParameter gxtToSeamServiceParameter = new GxtToSeamServiceParameter();
				gxtToSeamServiceParameter.setServiceComponentName( "com.test.server.business.PersonService");
				//gxtToSeamServiceParameter.set(MetaDataConstants.SERVICE_COMPONENT_NAME, "PersonService");
				//gxtToSeamServiceParameter.set(MetaDataConstants.SERVICE_MEHOD_NAME, "loadSubApplication");
				gxtToSeamServiceParameter.setServiceMethodName( "loadSubApplication");
				BaseModel[] methodArguments2 = new BaseModel[1];
				methodArguments2[0] = new BaseModel();
			//	gxtToSeamServiceParameter.set("methodArguments",methodArguments2 );
			button01.put("gxttoseamserviceparametermodel", gxtToSeamServiceParameter);
			ItemOfAssociateToWindow node11  = new ItemOfAssociateToWindow(button01);
			node11.setEventStructureMetaModel(eventStructureMetaModel);
			node11.setRegisterEventType(registerEventType);
			
			Map<String, Object> button02 = new HashMap<String, Object>();
		    button02.put("component_model_type_index", ComponentTypeEnum.BUTTON_MODEL.ordinal());   
		    button02.put("text", "保存");
			ItemOfAssociateToWindow node22  = new ItemOfAssociateToWindow(button02);
			
			Map<String, Object> button03 = new HashMap<String, Object>();
		    button03.put("component_model_type_index", ComponentTypeEnum.BUTTON_MODEL.ordinal());   
		    button03.put("text", "清空");
			ItemOfAssociateToWindow node33  = new ItemOfAssociateToWindow(button03);
			
			Map<String, Object> button04 = new HashMap<String, Object>();
		    button04.put("component_model_type_index", ComponentTypeEnum.BUTTON_MODEL.ordinal());   
		    button04.put("text", "导入");
			ItemOfAssociateToWindow node44  = new ItemOfAssociateToWindow(button04);
			
			Map<String, Object> button05 = new HashMap<String, Object>();
		    button05.put("component_model_type_index", ComponentTypeEnum.BUTTON_MODEL.ordinal());   
		    button05.put("text", "导出");
		    ItemOfAssociateToWindow node55  = new ItemOfAssociateToWindow(button05);
		    
		   

			//List<GxtComponentMetaNodeModel> list = new ArrayList<GxtComponentMetaNodeModel>();
			//list.add(node11);
			//list.add(node22);
			//list.add(node33);
			//list.add(node44);
			//list.add(node55);
			
			Set<ItemOfAssociateToWindow> set = new LinkedHashSet<ItemOfAssociateToWindow>();
			set.add(node11);
			set.add(node22);
			set.add(node33);
			set.add(node44);
			set.add(node55);
			
			Map<String, Object> toolbar=new HashMap<String, Object>();
			toolbar.put("component_model_type_index", ComponentTypeEnum.TOOLBAR_MODEL.ordinal());
			toolbar.put("component_model_type", ComponentTypeEnum.TOOLBAR_MODEL);
			toolbar.put("id", "03_01_toolbarGxtComponent_PositonType");	
			//toolbar.put("add", btn);
//			toolbar.put("children", list);
			toolbar.put(ComponentMetaDataConstants.CHILDREN_ITEMS, set);
			ToolBarHandler.configureToolBarGxtComponentMetaNodeModel ( toolbar );
			GxtComponentMetaNodeModel node4=new GxtComponentMetaNodeModel(toolbar, 5, 6);
			
			

			return node4;
	}


		
		
		public GxtComponentMetaNodeModel getToolBarGxtComponentMetaNodeModel() {
			
			
			 	Map<String, Object> button01 = new HashMap<String, Object>();
			    button01.put("component_model_type_index", ComponentTypeEnum.BUTTON_MODEL.ordinal());   
			    button01.put("text", "新建");
				  //TODO map2.put("appEventType", AppEvents.DESKTOP_SHORTCUT_ONCLICK_INIT);
					//Map<String,Object> codes2 = new HashMap<String, Object>();
					//添加需要监听的事件类型，指定由某一个控制器响应，控制器内部应该如何响应（附加参数和数据）
					*//**
					 * 00_01_02为特征码
					 * 或者是 控制器的唯一标识
					 *//*
					GxtAppEventType registerEventType = new GxtAppEventType();
					registerEventType.setRegisterEventType("0010");
							EventStructureMetaModel eventStructureMetaModel = new EventStructureMetaModel();
							eventStructureMetaModel.setControllerId("windowController2");
							eventStructureMetaModel.setRootControllerId("windowController2");
						
			
				//button01.put("registereventtypes", codes2);
				GxtToSeamServiceParameter gxtToSeamServiceParameter = new GxtToSeamServiceParameter();
					gxtToSeamServiceParameter.setServiceComponentName( "com.test.server.business.PersonService");
					//gxtToSeamServiceParameter.set(MetaDataConstants.SERVICE_COMPONENT_NAME, "PersonService");
					//gxtToSeamServiceParameter.set(MetaDataConstants.SERVICE_MEHOD_NAME, "loadSubApplication");
					gxtToSeamServiceParameter.setServiceMethodName( "loadSubApplication");
					//BaseModel[] methodArguments2 = new BaseModel[1];
					//methodArguments2[0] = new BaseModel();
				//	gxtToSeamServiceParameter.set("methodArguments",methodArguments2 );
				button01.put("gxttoseamserviceparametermodel", gxtToSeamServiceParameter);
				ItemOfAssociateToWindow node11  = new ItemOfAssociateToWindow(button01);
				node11.setEventStructureMetaModel(eventStructureMetaModel);
				node11.setRegisterEventType(registerEventType);
				node11.setGxtToSeamServiceParameter(gxtToSeamServiceParameter);
				
				Map<String, Object> button02 = new HashMap<String, Object>();
			    button02.put("component_model_type_index", ComponentTypeEnum.BUTTON_MODEL.ordinal());   
			    button02.put("text", "保存");
				ItemOfAssociateToWindow node22  = new ItemOfAssociateToWindow(button02);
				
				Map<String, Object> button03 = new HashMap<String, Object>();
			    button03.put("component_model_type_index", ComponentTypeEnum.BUTTON_MODEL.ordinal());   
			    button03.put("text", "清空");
				ItemOfAssociateToWindow node33  = new ItemOfAssociateToWindow(button03);
				
				Map<String, Object> button04 = new HashMap<String, Object>();
			    button04.put("component_model_type_index", ComponentTypeEnum.BUTTON_MODEL.ordinal());   
			    button04.put("text", "导入");
				ItemOfAssociateToWindow node44  = new ItemOfAssociateToWindow(button04);
				
				Map<String, Object> button05 = new HashMap<String, Object>();
			    button05.put("component_model_type_index", ComponentTypeEnum.BUTTON_MODEL.ordinal());   
			    button05.put("text", "导出");
			    ItemOfAssociateToWindow node55  = new ItemOfAssociateToWindow(button05);
			    
			   

				//List<GxtComponentMetaNodeModel> list = new ArrayList<GxtComponentMetaNodeModel>();
				//list.add(node11);
				//list.add(node22);
				//list.add(node33);
				//list.add(node44);
				//list.add(node55);
				
			    List<ItemOfAssociateToWindow> set = new ArrayList<ItemOfAssociateToWindow>();
				set.add(node11);
				set.add(node22);
				set.add(node33);
				set.add(node44);
				set.add(node55);
				
				Map<String, Object> toolbar=new HashMap<String, Object>();
				toolbar.put("component_model_type_index", ComponentTypeEnum.TOOLBAR_MODEL.ordinal());
				toolbar.put("component_model_type", ComponentTypeEnum.TOOLBAR_MODEL);
				toolbar.put("id", "03_01_toolbarGxtComponent_PositonType");	
				//toolbar.put("add", btn);
//				toolbar.put("children", list);
				toolbar.put(ComponentMetaDataConstants.CHILDREN_ITEMS, set);
				ToolBarHandler.configureToolBarGxtComponentMetaNodeModel ( toolbar );
				GxtComponentMetaNodeModel node4=new GxtComponentMetaNodeModel(toolbar, 5, 6);
				
				

				return node4;
		}


		public GxtComponentMetaNodeModel getToolBarGxtComponentMetaNodeModel3() {
			
			
		 	Map<String, Object> button01 = new HashMap<String, Object>();
		    button01.put("component_model_type_index", ComponentTypeEnum.BUTTON_MODEL.ordinal());   
		    button01.put("text", "新建");
			  //TODO map2.put("appEventType", AppEvents.DESKTOP_SHORTCUT_ONCLICK_INIT);
				Map<String,Object> codes2 = new HashMap<String, Object>();
				//添加需要监听的事件类型，指定由某一个控制器响应，控制器内部应该如何响应（附加参数和数据）
				*//**
				 * 00_01_02为特征码
				 * 或者是 控制器的唯一标识
				 *//*
					Map<String,Object> oneRegisterEventTypeData = new HashMap<String, Object>();
						EventStructureMetaModel eventStructureMetaModel = new EventStructureMetaModel();
						eventStructureMetaModel.setControllerId("windowController2");
						eventStructureMetaModel.setRootControllerId("windowController2");
					oneRegisterEventTypeData.put("eventstructuremetamodel", eventStructureMetaModel);
					
		
				codes2.put("0010", oneRegisterEventTypeData);
			button01.put("registereventtypes", codes2);
				BaseModel gxtToSeamServiceParameter = new BaseModel();
				gxtToSeamServiceParameter.set("serviceComponentName", "com.test.server.business.PersonService");
				gxtToSeamServiceParameter.set("serviceMethodName", "loadSubApplication");
				BaseModel[] methodArguments2 = new BaseModel[1];
				methodArguments2[0] = new BaseModel();
				gxtToSeamServiceParameter.set("methodArguments",methodArguments2 );
			button01.put("gxttoseamserviceparametermodel", gxtToSeamServiceParameter);
			GxtComponentMetaNodeModel node11  = new GxtComponentMetaNodeModel(button01);
			
			Map<String, Object> button02 = new HashMap<String, Object>();
		    button02.put("component_model_type_index", ComponentTypeEnum.BUTTON_MODEL.ordinal());   
		    button02.put("text", "保存");
			GxtComponentMetaNodeModel node22  = new GxtComponentMetaNodeModel(button02);
			
			Map<String, Object> button03 = new HashMap<String, Object>();
		    button03.put("component_model_type_index", ComponentTypeEnum.BUTTON_MODEL.ordinal());   
		    button03.put("text", "清空");
			GxtComponentMetaNodeModel node33  = new GxtComponentMetaNodeModel(button03);
			
			Map<String, Object> button04 = new HashMap<String, Object>();
		    button04.put("component_model_type_index", ComponentTypeEnum.BUTTON_MODEL.ordinal());   
		    button04.put("text", "导入");
			GxtComponentMetaNodeModel node44  = new GxtComponentMetaNodeModel(button04);
			
			Map<String, Object> button05 = new HashMap<String, Object>();
		    button05.put("component_model_type_index", ComponentTypeEnum.BUTTON_MODEL.ordinal());   
		    button05.put("text", "导出");
			GxtComponentMetaNodeModel node55  = new GxtComponentMetaNodeModel(button05);
		    
		   

			List<GxtComponentMetaNodeModel> list = new ArrayList<GxtComponentMetaNodeModel>();
			list.add(node11);
			list.add(node22);
			list.add(node33);
			list.add(node44);
			list.add(node55);
			
			//Set<ItemOfAssociateToWindow> set = new LinkedHashSet<ItemOfAssociateToWindow>();
			//set.add(node11);
			//set.add(node22);
			//set.add(node33);
			//set.add(node44);
			//set.add(node55);
			
			Map<String, Object> toolbar=new HashMap<String, Object>();
			toolbar.put("component_model_type_index", ComponentTypeEnum.TOOLBAR_MODEL.ordinal());
			toolbar.put("id", "03_01_toolbarGxtComponent_PositonType");	
			//toolbar.put("add", btn);
			toolbar.put("children", list);
//			toolbar.put(ComponentMetaDataConstants.CHILDREN_ITEMS, set);
			ToolBarHandler.configureToolBarGxtComponentMetaNodeModel ( toolbar );
			GxtComponentMetaNodeModel node4=new GxtComponentMetaNodeModel(toolbar, 5, 6);
			
			

			return node4;
	}



		public GxtComponentMetaNodeModel getSumFormPanelGxtComponentMetaNodeModel() {
			//创建提交和取消按钮
			Map<String, Object> btnSubmit=new HashMap<String, Object>();
//			btnSubmit.put("component_model_type", ComponentTypeEnum.BUTTON_MODEL);
			//实际创建时，不检查此属性
			btnSubmit.put("component_model_type_index", ComponentTypeEnum.BUTTON_MODEL.ordinal());
			btnSubmit.put("text", "sumFormPanel确定000000");
			btnSubmit.put("id", "03_01_sumFormPanelGxtComponent_PositonType");
			Map<String,Object> codes2 = new HashMap<String, Object>();
			//添加需要监听的事件类型，指定由某一个控制器响应，控制器内部应该如何响应（附加参数和数据）
			*//**
			 * 00_01_02为特征码
			 * 或者是 控制器的唯一标识
			 *//*
					Map<String,Object> oneRegisterEventTypeData = new HashMap<String, Object>();
						EventStructureMetaModel eventStructureMetaModel = new EventStructureMetaModel();
						//eventStructureMetaModel.setControllerId("shortcutController02");
						eventStructureMetaModel.setRootControllerId("windowController2");
						//eventStructureMetaModel.setResponseModeId("00_02_02");
					oneRegisterEventTypeData.put("eventstructuremetamodel", eventStructureMetaModel);
					oneRegisterEventTypeData.put("dispachereventtype", "0007");
			
				codes2.put("0302", oneRegisterEventTypeData);
			btnSubmit.put("registereventtypes", codes2);
			GxtComponentMetaNodeModel btnSubmit1=new GxtComponentMetaNodeModel(btnSubmit);
			
			Map<String, Object> btnquxiao=new HashMap<String, Object>();
//			btnquxiao.put("component_model_type", ComponentTypeEnum.BUTTON_MODEL);
			//实际创建时，不检查此属性
			btnquxiao.put("component_model_type_index", ComponentTypeEnum.BUTTON_MODEL.ordinal());
			btnquxiao.put("text", "取消");
			GxtComponentMetaNodeModel btn1=new GxtComponentMetaNodeModel(btnquxiao);
			
			List<GxtComponentMetaNodeModel> list1=new ArrayList<GxtComponentMetaNodeModel>();
			list1.add(btnSubmit1);
			list1.add(btn1);
			
			
			
			Map<String, Object> MaxPanel=new HashMap<String, Object>();
//			MaxPanel.put("component_model_type", ComponentTypeEnum.FORMPANEL_MODEL);
			MaxPanel.put("component_model_type_index", ComponentTypeEnum.FORMPANEL_MODEL.ordinal());
			MaxPanel.put("width", 800);
//			MaxPanel.put("autoheight", true);
//			MaxPanel.put("height", 600);
			MaxPanel.put("frame", true);
			MaxPanel.put("headervisible", false);
			//TODO MaxPanel.put("addbutton", list1);
			MaxPanel.put("addsubmitbutton", true);
			MaxPanel.put("addresetbutton", true);
			MaxPanel.put("buttonalign", "CENTER");
			MaxPanel.put("layoutindex", ComponentTypeEnum.FORMLAYOUT_MODEL.ordinal());
			//TODO FormPanelHandler.configureFormPanel ( MaxPanel );
			//FormPanelHandler.configureFormPanel ( MaxPanel );
			GxtComponentMetaNodeModel node5=new GxtComponentMetaNodeModel(MaxPanel);
			
			return node5;
		}


		public GxtComponentMetaNodeModel getSumFormPanelGxtComponentMetaNodeModel2() {
			//创建提交和取消按钮
			Map<String, Object> btnSubmit=new HashMap<String, Object>();
//			btnSubmit.put("component_model_type", ComponentTypeEnum.BUTTON_MODEL);
			//实际创建时，不检查此属性
			btnSubmit.put("component_model_type_index", ComponentTypeEnum.BUTTON_MODEL.ordinal());
			btnSubmit.put("text", "sumFormPanel确定000000");
			btnSubmit.put("id", "03_01_sumFormPanelGxtComponent_PositonType");
			Map<String,Object> codes2 = new HashMap<String, Object>();
			//添加需要监听的事件类型，指定由某一个控制器响应，控制器内部应该如何响应（附加参数和数据）
			*//**
			 * 00_01_02为特征码
			 * 或者是 控制器的唯一标识
			 *//*
					Map<String,Object> oneRegisterEventTypeData = new HashMap<String, Object>();
						EventStructureMetaModel eventStructureMetaModel = new EventStructureMetaModel();
						//eventStructureMetaModel.setControllerId("shortcutController02");
						eventStructureMetaModel.setRootControllerId("windowController2");
						//eventStructureMetaModel.setResponseModeId("00_02_02");
					oneRegisterEventTypeData.put("eventstructuremetamodel", eventStructureMetaModel);
					oneRegisterEventTypeData.put("dispachereventtype", "0007");
			
				codes2.put("0302", oneRegisterEventTypeData);
			btnSubmit.put("registereventtypes", codes2);
			GxtComponentMetaNodeModel btnSubmit1=new GxtComponentMetaNodeModel(btnSubmit);
			
			Map<String, Object> btnquxiao=new HashMap<String, Object>();
//			btnquxiao.put("component_model_type", ComponentTypeEnum.BUTTON_MODEL);
			//实际创建时，不检查此属性
			btnquxiao.put("component_model_type_index", ComponentTypeEnum.BUTTON_MODEL.ordinal());
			btnquxiao.put("text", "取消");
			GxtComponentMetaNodeModel btn1=new GxtComponentMetaNodeModel(btnquxiao);
			
			List<GxtComponentMetaNodeModel> list1=new ArrayList<GxtComponentMetaNodeModel>();
			list1.add(btnSubmit1);
			list1.add(btn1);
			
			
			
			Map<String, Object> MaxPanel=new HashMap<String, Object>();
//			MaxPanel.put("component_model_type", ComponentTypeEnum.FORMPANEL_MODEL);
			MaxPanel.put("component_model_type_index", ComponentTypeEnum.FORMPANEL_MODEL.ordinal());
			MaxPanel.put("autowidth", true);
			MaxPanel.put("autoheight", true);
			MaxPanel.put("frame", true);
			MaxPanel.put("headervisible", false);
			//TODO MaxPanel.put("addbutton", list1);
			MaxPanel.put("addsubmitbutton", true);
			MaxPanel.put("addresetbutton", true);
			MaxPanel.put("buttonalign", "CENTER");
			MaxPanel.put("layoutindex", ComponentTypeEnum.FORMLAYOUT_MODEL.ordinal());
			FormPanelHandler.configureFormPanel ( MaxPanel );
			GxtComponentMetaNodeModel node5=new GxtComponentMetaNodeModel(MaxPanel);
			
			return node5;
		}


		

		public GxtComponentMetaNodeModel getGridSetModuleGxtComponentMetaNodeModel() {
			Map<String, Object> map2 = new HashMap<String, Object>();
			map2.put("component_model_type", ComponentTypeEnum.GRIDSETMODULES_MODEL);
			map2.put("component_model_type_index", ComponentTypeEnum.GRIDSETMODULES_MODEL.ordinal());
			map2.put("autowidth", true);
			map2.put("autoheight", true);
			map2.put("frame", true);
			map2.put("headervisible", false);
			
			Map<String,Object> oneDispacherEventTypeData = new HashMap<String, Object>();
			EventStructureMetaModel subEventStructureMetaModel = new EventStructureMetaModel();
			subEventStructureMetaModel.setControllerId("5_1_dataLoadController_PositonType");
			subEventStructureMetaModel.setRootControllerId("1_1_windowController_PositonType");
			oneDispacherEventTypeData.put("eventstructuremetamodel", subEventStructureMetaModel);
			
			
			Map<String,Object> dispacherEventTypeDatas = new HashMap<String, Object>();
			dispacherEventTypeDatas.put("0007", oneDispacherEventTypeData);
			map2.put("dispachereventtypes", dispacherEventTypeDatas);
				
				//可编辑表格
				Map<String, Object> map3 = new HashMap<String, Object>();
				//实际中，此属性不起作用
//				map3.put("component_model_type", ComponentTypeEnum.GRIDMODULE_MODEL);
				map3.put("component_model_type_index", ComponentTypeEnum.GRIDMODULE_MODEL.ordinal());
				map3.put("version",1);//可编辑表格
				map3.put("hight", 380);
				//map3.put("width", 500);
				map3.put("headervisible",false );
				map3.put("rownumber", true);
				map3.put("id", "04_01_gridSetModuleGxtComponent_PositonType");
						List<ModelData> columnConfigs = new ArrayList<ModelData>();		
						columnConfigs.add(new GridColumnConfigModel("TITLE","名称",200));
						columnConfigs.add(new GridColumnConfigModel("DESCRIPTION","描述",300));
					
						
				map3.put("columnconfigload", columnConfigs);
				
				HandlerData.data ( map3 , "positionTypeService" , "getAllPositonType" , "addPositionType" , "modifyPositionType" , "loadEditorableGrid"  );	
						
//						BaseModel gxtToSeamServiceParameter = new BaseModel();
//						gxtToSeamServiceParameter.set("serviceComponentName", "com.test.server.business.PersonService");
//						gxtToSeamServiceParameter.set("serviceMethodName", "loadEditorableGrid");
//						BaseModel[] methodArguments2 = new BaseModel[1];
//						methodArguments2[0] = new BaseModel();
//						gxtToSeamServiceParameter.set("methodArguments",methodArguments2 );
//				map3.put("gxttoseamserviceparametermodel", gxtToSeamServiceParameter);
//				map3.put("dataload", gxtToSeamServiceParameter);
				GxtComponentMetaNodeModel node3 = new GxtComponentMetaNodeModel(map3);
			
				List<GxtComponentMetaNodeModel> list = new ArrayList<GxtComponentMetaNodeModel>();
				list.add(node3);
			map2.put("gridlist", list);
			GxtComponentMetaNodeModel node2 = new GxtComponentMetaNodeModel(map2);
			return node2;
		}

		
		private GxtComponentMetaNodeModel getGridSetModuleGxtComponentMetaNodeModel3() {
			Map<String, Object> map2 = new HashMap<String, Object>();
//			map2.put("component_model_type", ComponentTypeEnum.GRIDSETMODULES_MODEL);
			map2.put("component_model_type_index", ComponentTypeEnum.GRIDSETMODULES_MODEL.ordinal());
			map2.put("autowidth", true);
			map2.put("autoheight", true);
			map2.put("frame", true);
			map2.put("headervisible", false);
			
			Map<String,Object> oneDispacherEventTypeData = new HashMap<String, Object>();
			EventStructureMetaModel subEventStructureMetaModel = new EventStructureMetaModel();
			subEventStructureMetaModel.setControllerId("5_1_dataLoadController_PositonType");
			subEventStructureMetaModel.setRootControllerId("1_1_windowController_PositonType");
			oneDispacherEventTypeData.put("eventstructuremetamodel", subEventStructureMetaModel);
			
			
			Map<String,Object> dispacherEventTypeDatas = new HashMap<String, Object>();
			dispacherEventTypeDatas.put("0007", oneDispacherEventTypeData);
			map2.put("dispachereventtypes", dispacherEventTypeDatas);
				
				//可编辑表格
				Map<String, Object> map3 = new HashMap<String, Object>();
				//实际中，此属性不起作用
//				map3.put("component_model_type", ComponentTypeEnum.GRIDMODULE_MODEL);
				map3.put("component_model_type_index", ComponentTypeEnum.GRIDMODULE_MODEL.ordinal());
				map3.put("version",1);//可编辑表格
				map3.put("hight", 380);
				//map3.put("width", 500);
				map3.put("headervisible",false );
				map3.put("rownumber", true);
				map3.put("id", "04_01_gridSetModuleGxtComponent_PositonType");
						List<ModelData> columnConfigs = new ArrayList<ModelData>();		
						columnConfigs.add(new GridColumnConfigModel("TITLE","名称",200));
						columnConfigs.add(new GridColumnConfigModel("DESCRIPTION","描述",300));
					
						
				map3.put("columnconfigload", columnConfigs);
				
				HandlerData.data ( map3 , "positionTypeService" , "getAllPositonType" , "addPositionType" , "modifyPositionType" , "loadEditorableGrid"  );	
						
//						BaseModel gxtToSeamServiceParameter = new BaseModel();
//						gxtToSeamServiceParameter.set("serviceComponentName", "com.test.server.business.PersonService");
//						gxtToSeamServiceParameter.set("serviceMethodName", "loadEditorableGrid");
//						BaseModel[] methodArguments2 = new BaseModel[1];
//						methodArguments2[0] = new BaseModel();
//						gxtToSeamServiceParameter.set("methodArguments",methodArguments2 );
//				map3.put("gxttoseamserviceparametermodel", gxtToSeamServiceParameter);
//				map3.put("dataload", gxtToSeamServiceParameter);
				GxtComponentMetaNodeModel node3 = new GxtComponentMetaNodeModel(map3);
			
			List<GxtComponentMetaNodeModel> list = new ArrayList<GxtComponentMetaNodeModel>();
			list.add(node3);
			map2.put("gridlist", list);
			GxtComponentMetaNodeModel node2 = new GxtComponentMetaNodeModel(map2);
			return node2;
		}

		
		
		public GxtComponentMetaNodeModel getGridSetModuleGxtComponentMetaNodeModel2() {
			Map<String, Object> map2 = new HashMap<String, Object>();
//			map2.put("component_model_type", ComponentTypeEnum.GRIDSETMODULES_MODEL);
			map2.put("component_model_type_index", ComponentTypeEnum.GRIDSETMODULES_MODEL.ordinal());
			map2.put("autowidth", true);
			map2.put("autoheight", true);
			map2.put("frame", true);
			map2.put("headervisible", false);
			
			Map<String,Object> oneDispacherEventTypeData = new HashMap<String, Object>();
			EventStructureMetaModel subEventStructureMetaModel = new EventStructureMetaModel();
			subEventStructureMetaModel.setControllerId("5_1_dataLoadController_PositonType");
			subEventStructureMetaModel.setRootControllerId("1_1_windowController_PositonType");
			oneDispacherEventTypeData.put("eventstructuremetamodel", subEventStructureMetaModel);
			
			
			Map<String,Object> dispacherEventTypeDatas = new HashMap<String, Object>();
			dispacherEventTypeDatas.put("0007", oneDispacherEventTypeData);
			map2.put("dispachereventtypes", dispacherEventTypeDatas);
				
				//可编辑表格
				//Map<String, Object> map3 = new HashMap<String, Object>();
				//实际中，此属性不起作用
//				map3.put("component_model_type", ComponentTypeEnum.GRIDMODULE_MODEL);
//				map3.put("component_model_type_index", ComponentTypeEnum.GRIDMODULE_MODEL.ordinal());
				map2.put(ComponentMetaDataConstants.GRIDMODULE_TYPE, ComponentTypeEnum.GRIDMODULE_MODEL.toString());
				map2.put("version",1);//可编辑表格
				map2.put("hight", 380);
				//map3.put("width", 500);
				map2.put("headervisible",false );
				map2.put("rownumber", true);
						List<ModelData> columnConfigs = new ArrayList<ModelData>();		
						columnConfigs.add(new GridColumnConfigModel("TITLE","名称",200));
						columnConfigs.add(new GridColumnConfigModel("DESCRIPTION","描述",300));																	
				//map2.put("columnconfigload", columnConfigs);
						//map2.put(ComponentMetaDataConstants.GRID_COLUMNCONFIG_MODELS,columnConfigs);								
						map2.put("id", "04_01_gridSetModuleGxtComponent_PositonType");

			GxtComponentMetaNodeModel node2 = new GxtComponentMetaNodeModel(map2);
			
			
				//HandlerData.data ( map2 , "positionTypeService" , "getAllPositonType" , "addPositionType" , "modifyPositionType" , "loadEditorableGrid"  );	
				
				//configureGxtComponentMetaNodeModels("positionTypeService" , "getAllPositonType" , "addPositionType" , "modifyPositionType" , "loadEditorableGrid");		
	//				
				
//				Set<ItemOfAssociateToWindow> childrenItems=new LinkedHashSet<ItemOfAssociateToWindow>();
				List<ItemOfAssociateToWindow> childrenItems=new LinkedList<ItemOfAssociateToWindow>();
					GxtToSeamServiceParameter g1=new GxtToSeamServiceParameter("positionTypeService" , "getAllPositonType" );
					g1.setMethodArgumentsType(null);
					ItemOfAssociateToWindow itemOfAssociateToWindow = new ItemOfAssociateToWindow();
					itemOfAssociateToWindow.setGxtToSeamServiceParameter(g1);
					EventStructureMetaModel eventStructureMetaModel = new EventStructureMetaModel();
					eventStructureMetaModel.setRootControllerId("1_1_windowController_PositonType");
					eventStructureMetaModel.setControllerId("4_1_gridController_PositonType");
					itemOfAssociateToWindow.setEventStructureMetaModel(eventStructureMetaModel);
					itemOfAssociateToWindow.setItemType(ComponentMetaDataConstants.MVC_ITEM_TYPE);
					itemOfAssociateToWindow.setRegisterEventType(new GxtAppEventType("0401"));
				
					//childrenItems.add(ItemOfAssociateToWindow.addGxtToSeamServiceParameterToItem("gxttoseamserviceparametermodel","positionTypeService" , "getAllPositonType" ));
					//childrenItems.add(ItemOfAssociateToWindow.addGxtToSeamServiceParameterToItem("gxttoseamserviceparametermodelforadd","positionTypeService" , "addPositionType" ));
					//childrenItems.add(ItemOfAssociateToWindow.addGxtToSeamServiceParameterToItem("gxttoseamserviceparametermodelforupdate","positionTypeService" , "modifyPositionType" ));
					//childrenItems.add(ItemOfAssociateToWindow.addGxtToSeamServiceParameterToItem("gxttoseamserviceparametermodelformerge","positionTypeService" , "loadEditorableGrid" ));
				childrenItems.add(itemOfAssociateToWindow);
			node2.set (ComponentMetaDataConstants.CHILDREN_ITEMS,  childrenItems) ;
			
			List<GridColumnConfigModel> columnConfigs = new LinkedList<GridColumnConfigModel>();		
				columnConfigs.add(new GridColumnConfigModel("TITLE","名称",200));
				columnConfigs.add(new GridColumnConfigModel("DESCRIPTION","描述",300));
			node2.set(ComponentMetaDataConstants.GRID_COLUMNCONFIG_MODELS,columnConfigs);
			node2.setChildrenItemsType("data");

			
			return node2;
		}




		




		

		
		
}*/
